﻿using HarrisDesigns.Controls.dasBlogControls.Google.Reader;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace dasBlogControls.Test.Google.Reader
{
    [TestClass]
    public class WhenReaderDataHasBeenDownloaded
    {
        private Feed _context;
        public Feed Context
        {
            get
            {
                if (_context == null)
                {
                    _context = (new Repository() { UserIdentity = "01419355436250770207", MaxItems = 10, PollingInterval = 10 }).GetCurrentData();
                }
                return _context;
            }
        }

        [TestMethod]
        public void ItShouldContainOnlyFeedDataFromTheUser()
        {
            Assert.IsTrue(Context.Id.Contains("01419355436250770207"));
        }
    }
}